using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ItemUI : MonoBehaviour
{
    public void SetUI(Item item)
    {
        transform.GetComponent<Image>().sprite = GameFacade.Instance.assetsFactory.LoadSprite(item.Path);
        
    }
    public void SetNumber(int number)
    {
      
        if(number!=1)
        {
            transform.GetChild(0).GetComponent<Text>().text = number.ToString();
        }
       
        else { transform.GetChild(0).GetComponent<Text>().text = ""; }
    }
}
